<me:USTUELI x:Class="WPFExcelReport.TUWS04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                  x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:USTUELI.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:SDKEYCONV x:Key="sd"/>
    </me:USTUELI.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition> 
        </Grid.RowDefinitions> 
        <DataGrid  Grid.Row="0"  
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   IsReadOnly="True"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"     
                   ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster"   
                   RowDetailsVisibilityMode="Visible"  Margin="0,0,0,40"
                    >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=STUELIPPOS}" Header="{Binding Source={Localization:Translate Word=序号}}"  Width="40" />
                <DataGridTextColumn Binding="{Binding Path=STUELISASB}" Header="{Binding Source={Localization:Translate Word=成份}}"  Width="40" />
                <DataGridTextColumn Binding="{Binding Path=STUELISASB,Converter={StaticResource sd},ConverterParameter=0013}"   Width="60" />
                <DataGridTextColumn Binding="{Binding Path=RATIO,Converter={StaticResource d10}}" Header="{Binding Source={Localization:Translate Word=比例}}"  Width="40" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:USTUELI>
